package com.dayu.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayu.basic.mapper.BasicClerkMapper;
import com.dayu.basic.domain.BasicClerk;
import com.dayu.basic.service.IBasicClerkService;

/**
 * 营业员管理Service业务层处理
 * 
 * @author HK
 * @date 2021-04-15
 */
@Service
public class BasicClerkServiceImpl implements IBasicClerkService 
{
    @Autowired
    private BasicClerkMapper basicClerkMapper;

    /**
     * 查询营业员管理
     * 
     * @param clerkId 营业员管理ID
     * @return 营业员管理
     */
    @Override
    public BasicClerk selectBasicClerkById(Long clerkId)
    {
        return basicClerkMapper.selectBasicClerkById(clerkId);
    }

    /**
     * 查询营业员管理列表
     * 
     * @param basicClerk 营业员管理
     * @return 营业员管理
     */
    @Override
    public List<BasicClerk> selectBasicClerkList(BasicClerk basicClerk)
    {
        return basicClerkMapper.selectBasicClerkList(basicClerk);
    }

    /**
     * 新增营业员管理
     * 
     * @param basicClerk 营业员管理
     * @return 结果
     */
    @Override
    public int insertBasicClerk(BasicClerk basicClerk)
    {
        return basicClerkMapper.insertBasicClerk(basicClerk);
    }

    /**
     * 修改营业员管理
     * 
     * @param basicClerk 营业员管理
     * @return 结果
     */
    @Override
    public int updateBasicClerk(BasicClerk basicClerk)
    {
        return basicClerkMapper.updateBasicClerk(basicClerk);
    }

    /**
     * 批量删除营业员管理
     * 
     * @param clerkIds 需要删除的营业员管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicClerkByIds(Long[] clerkIds)
    {
        return basicClerkMapper.deleteBasicClerkByIds(clerkIds);
    }

    /**
     * 删除营业员管理信息
     * 
     * @param clerkId 营业员管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicClerkById(Long clerkId)
    {
        return basicClerkMapper.deleteBasicClerkById(clerkId);
    }
}
